<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'basic';
$return=array();
/*******basic*******/
if($_RQ['op']=='basic'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('shop',$postdata);
		exi('设置成功');
	}
	$item=$this->plugin_setting('shop');
	if(!$item['store_name']){
		$item=$this->model('wxapp_api')->get_shopinfo();
		$this->plugin_setting('shop',$item);
	}
	$return['item']=$item;
	$htmls=array(
		'type'=>'edit',
		'desc'=>'店铺信息',
		'edit_tab'=>true,
		'edits'=>array(
			array(
				'title'=>'基本信息',
				'list'=>array(
						array('type'=>'image','title'=>'上传小程序二维码','name'=>'ewm', 'help'=>''),
				)
			),
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}
/*******basic*******/
/*******op*******/
